package com.tian.core.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Log entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "log", catalog = "portalservermond")
public class Log implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer master;
	private String mastername;
	private Date logTime;
	private String logType;
	private String content;
	private String ip;

	// Constructors

	/** default constructor */
	public Log() {
	}

	/** full constructor */
	public Log(Integer master, String mastername, Date logTime,
			String logType, String content, String ip) {
		this.master = master;
		this.mastername = mastername;
		this.logTime = logTime;
		this.logType = logType;
		this.content = content;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "master")
	public Integer getMaster() {
		return this.master;
	}

	public void setMaster(Integer master) {
		this.master = master;
	}

	@Column(name = "mastername", length = 50)
	public String getMastername() {
		return this.mastername;
	}

	public void setMastername(String mastername) {
		this.mastername = mastername;
	}

	@Column(name = "logTime", length = 0)
	public Date getLogTime() {
		return this.logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}

	@Column(name = "logType", length = 50)
	public String getLogType() {
		return this.logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}

	@Column(name = "content")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "ip", length = 20)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}